
#import <QuartzCore/QuartzCore.h>
#import "ResultCell.h"

@interface ResultCell ()

@property (weak, nonatomic) IBOutlet UIButton *changeButton;

@end


@implementation ResultCell

- (void)initCell
{
    [self setSelectionStyle:UITableViewCellSelectionStyleNone];
    self.changeButton.layer.borderColor = kNavBarTintColor.CGColor;
    self.changeButton.layer.borderWidth = 1;
    self.changeButton.layer.cornerRadius = 4;
}

- (IBAction)changeButtonPressed:(id)sender
{
    [self.delegate resultCell:self changeLampPriceForSubstituteAtIndex:self.tag];
}

- (IBAction)infoButtonPressed:(id)sender
{
    [self.delegate resultCell:self showCalculationDetailsForSubstituteAtIndex:self.tag];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
}

@end
